This JavaScript is only available in the full version of HoTMetaL PRO 4.0. If you're connected to the internet right now, visit the SoftQuad web site to find out more, or read the description below.

To insert the Java Script into your page, drag and drop the mouse(8) onto the Editor. When you do so, a Design-Time control (DTC) appears, enabling you to configure the button.

Toggle Button Java Script8

The Toggle button creates a JavaScript that toggles between two images when you click on it. You can also link another JavaScript into this button so that it will be triggered on the mouse click.

To configure the Toggle Button:

  • Enter the path to the `on' and `off' images in the text boxes provided.
  • Give this control a Button ID so that it can be invoked by JavaScript.
  • In the Java Script function name text box, you can enter the name of another JavaScript that is called when you click on the toggle button.

The check box at the bottom of the dialog tells the DTC not to insert another copy of the the Toggle Button script if you already have a toggle button script in your page.